﻿
// YunDunDefenderDlg.h: 头文件
//

#pragma once

#include "MenuWindowDlg.h"
#include "ScanWindowDlg.h"
#include <memory>
#define MENUTIME  0
#define SCANTIME  1

// CYunDunDefenderDlg 对话框
class CYunDunDefenderDlg : public CDialogEx
{
// 构造
public:
	CYunDunDefenderDlg(CWnd* pParent = nullptr);	// 标准构造函数
	~CYunDunDefenderDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_YUNDUNDEFENDER_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持
private:
	std::shared_ptr<CYunDunDefenderDlg> m_self_ptr;

// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	DECLARE_MESSAGE_MAP()

	CTabCtrl m_TabCtrl;
	CMenuWindowDialog m_TabMenuWindow;
	CScanWindowDialog m_TabScanWindow;
public:;
	/*afx_msg void OnBnClickedDulldiskscan();
	afx_msg void OnBnClickedCustomscan();*/
	void SwitchTab(int nTab);
	afx_msg void OnSize(UINT nType, int cx, int cy);


	void SetScanWindowProcess(std::wstring procss);
	void SetScanWindowPath(std::wstring Path);

	void SetScanProcessCTL(DWORD dwclt);
	void SetScanDataBaseCTL(DWORD dwclt);
	void AddScanColor(DWORD dwclt);
	std::wstring GetSavePath();
	void SetReuilt(DWORD dwfilenumber, DWORD allfienumber, DWORD badFilenumber);
};
